package com.dews.common.enums;

/**
 * 登录来源类型
 *
 * @author rakic
 */
public enum LoginTypeEnum {
    WEB("web" , "pc用户登录" , true),
    WX("wx" , "微信用户登录" , false),
    ;

    private final String code;

    private final boolean isCheckCaptcha;
    private final String info;

    LoginTypeEnum(String code, String info, boolean isCheckCaptcha) {
        this.code = code;
        this.info = info;
        this.isCheckCaptcha = isCheckCaptcha;
    }

    public boolean isCheckCaptcha() {
        return isCheckCaptcha;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
